package com.david.appletree

import android.app.Activity
import android.os.Bundle
import com.bumptech.glide.manager.LifecycleListener
import java.util.*

public class LifeCircleActivity:Activity() {
    private val lifecycleListeners =
        Collections.newSetFromMap(WeakHashMap<LifecycleListener, Boolean>())

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }

    override fun onDestroy() {
        super.onDestroy()
        lifecycleListeners.iterator().next().onDestroy()
    }
}